Skip to content

feat: show last message for ghost group (WPB-25285) - #5127

Open
sbakhtiarov wants to merge 1 commit into
feat/adminless-system-messagefrom
feat/ghost-group-message
Open

feat: show last message for ghost group (WPB-25285)#5127
sbakhtiarov wants to merge 1 commit into
feat/adminless-system-messagefrom
feat/ghost-group-message

Conversation

@sbakhtiarov

@sbakhtiarov sbakhtiarov commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-25285

https://wearezeta.atlassian.net/browse/WPB-25285


What's new in this PR?

Issues

For "ghost" groups (groups pending automatic deletion because they have no eligible admins), the conversation list should surface the pending-deletion state as the last message, and it must not be hidden behind unread-event
summaries.

Causes

The Kalium side now emits a dedicated MessagePreviewContent.AdminlessDeleteReminder preview, but the Android preview mapper had no branch for it and would otherwise fall through the unread-event aggregation logic.

Solutions

  • MessagePreviewContentMapper:
    • Map MessagePreviewContent.AdminlessDeleteReminder to a
      TextMessage using the new last_message_adminless_delete_reminder string.
    • Short-circuit toUIPreview for the reminder so it always shows the
      pending-deletion text regardless of unread-event counts.
  • Added string last_message_adminless_delete_reminder → "Will be deleted soon".
  • Bumped the Kalium submodule to include the ghost-group preview support.

Dependencies

Needs releases with:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant